home *** CD-ROM | disk | FTP | other *** search
- // ******************** File: prog2.C *********************
- // A program that demonstrates the use of SplineSpace
- #include <SplineSpace.h>
- int main()
- {
- KnotVec knots(5);
- knots.fill(1,5); // the knots becomes 1 2 3 4 5
- knots.regulate(4);
-
- SplineSpace space1(knots,4);
- space1.print(s_o); s_o << "\n";
-
- SplineSpace space2; space2.redim(space1);
- space2.print(s_o);
- return 0;
- }
-